package com.example.springbootwebsocketmonikehuduan.entity;

import java.util.List;

/**
 * @program: springboot-websocket-monikehuduan
 * @description: 11
 * @author: XianJin.Lu
 * @create: 2021-09-03 12:24
 **/
public class Menjing {
    private String cmdSn;
    private Integer result;
    private String resultDesc;
    private List<ResultData> resultData;

    public static class ResultData {
        private String devAddr;    //"设备通信地址
        private String devPort;   //设备端口
        private String devId;    //设备唯一标识,
        private String devType;   // 设备类型
        private String devPos;    //设备名称
        private Integer doorNum;   //:门数量
        private String areaName;   //所属区域
        private String openState;  //门状态

        public ResultData(String devAddr, String devPort, String devId, String devType, String devPos, Integer doorNum, String areaName, String openState) {
            this.devAddr = devAddr;
            this.devPort = devPort;
            this.devId = devId;
            this.devType = devType;
            this.devPos = devPos;
            this.doorNum = doorNum;
            this.areaName = areaName;
            this.openState = openState;
        }

        public String getDevAddr() {
            return devAddr;
        }

        public void setDevAddr(String devAddr) {
            this.devAddr = devAddr;
        }

        public String getDevPort() {
            return devPort;
        }

        public void setDevPort(String devPort) {
            this.devPort = devPort;
        }

        public String getDevId() {
            return devId;
        }

        public void setDevId(String devId) {
            this.devId = devId;
        }

        public String getDevType() {
            return devType;
        }

        public void setDevType(String devType) {
            this.devType = devType;
        }

        public String getDevPos() {
            return devPos;
        }

        public void setDevPos(String devPos) {
            this.devPos = devPos;
        }

        public Integer getDoorNum() {
            return doorNum;
        }

        public void setDoorNum(Integer doorNum) {
            this.doorNum = doorNum;
        }

        public String getAreaName() {
            return areaName;
        }

        public void setAreaName(String areaName) {
            this.areaName = areaName;
        }

        public String getOpenState() {
            return openState;
        }

        public void setOpenState(String openState) {
            this.openState = openState;
        }

        @Override
        public String toString() {
            return "ResultData{" +
                    "devAddr='" + devAddr + '\'' +
                    ", devPort='" + devPort + '\'' +
                    ", devId='" + devId + '\'' +
                    ", devType='" + devType + '\'' +
                    ", devPos='" + devPos + '\'' +
                    ", doorNum=" + doorNum +
                    ", areaName='" + areaName + '\'' +
                    ", openState='" + openState + '\'' +
                    '}';
        }
    }

    public Menjing(String cmdSn, Integer result, String resultDesc, List<ResultData> resultData) {
        this.cmdSn = cmdSn;
        this.result = result;
        this.resultDesc = resultDesc;
        this.resultData = resultData;
    }

    public String getCmdSn() {
        return cmdSn;
    }

    public void setCmdSn(String cmdSn) {
        this.cmdSn = cmdSn;
    }

    public Integer getResult() {
        return result;
    }

    public void setResult(Integer result) {
        this.result = result;
    }

    public String getResultDesc() {
        return resultDesc;
    }

    public void setResultDesc(String resultDesc) {
        this.resultDesc = resultDesc;
    }

    public List<ResultData> getResultData() {
        return resultData;
    }

    public void setResultData(List<ResultData> resultData) {
        this.resultData = resultData;
    }

    @Override
    public String toString() {
        return "Menjing{" +
                "cmdSn='" + cmdSn + '\'' +
                ", result=" + result +
                ", resultDesc='" + resultDesc + '\'' +
                ", resultData=" + resultData +
                '}';
    }
}